﻿using Questionnaire.Data.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Questionnaire.API.Models
{
    public class QuestionModel
    {
        public QuestionModel()
        {
            Option = new HashSet<OptionModel>();
        }
        public int QuestionId { get; set; }
        public int? QuestionnaireId { get; set; }
        public string Describe { get; set; }
        public DateTime CreateTime { get; set; }
        public bool IsDelete { get; set; }
        public int Serial { get; set; }
        public int QuestionType { get; set; }

        public virtual ICollection<OptionModel> Option { get; set; }

        public OptionModel Answer { get; set; }

        public virtual QuestionnaireModel Questionnaire { get; set; }
    }
}
